<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/9/14 0014
  Time: 14:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <title>最新电影 - 电影首发站_最新电影在线观看_手机在线电影</title>
    <meta name="keywords" content="电影,最新电影,电影排行,电影排行榜前十名">
    <meta name="description" content="电影首发站为您提供最新电影、好看的电影推荐。欢迎电影的爱好者来到电影首发站观看最新电影排行榜前十名。">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="format-detection" content="telephone=no">
    <meta name="renderer" content="webkit">
    <meta name="applicable-device" content="pc,mobile">
    <script>var maccms={"path":"","mid":"","url":"www.xxxx.com","wapurl":"xxxx.com","mob_status":"2"};</script>
    <link href="${pageContext.request.contextPath}/static2/css/style.css" rel="stylesheet">
    <script type="text/javascript" src="${pageContext.request.contextPath}/static2/js/jquery.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static2/js/jquery.lazyload.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static2/js/home.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static2/js/script.js"></script>
</head>
<body>
<div class="topaww">
    <%@include file="common.jsp"%>
</div>


<div class="wrap">
    <div class="sy-all clearfix">
        <div class="sy-title clearfix">
            <div class="text"><a href="index.html">首页</a>&nbsp;&nbsp;&raquo;&nbsp;&nbsp;<a href="">电影</a></div>
            <div class="more sbtn"><b class="more1"><i class="name">展开</i><i class="ico sybg1 png"></i></b> <b
                    class="more2"><i class="name">收起</i><i class="ico sybg2 png"></i></b></div>
        </div>
        <div class="sy scon clearfix">

            <input type="hidden" name="typename"   id="typename"  value="${search['typename']}">
            <input type="hidden" name="typeage"   id="typeage"  value="${search['typeage']}">
            <input type="hidden" name="typearea"   id="typearea"  value="${search['typearea']}">
            <dl class="clearfix">
                <dt>按分类：</dt>
                <dd><a class="on" href="">全部</a>
                    <span>
                    <c:forEach items="${fn:split(type.typeson,',')}" var="typeson">
                     <c:if  test="${search['typename']==typeson}">
                      <a  style="color:blue" class="typename_click"  href="javascript:;">${typeson}</a>
                     </c:if>
                        <c:if  test="${search['typename']!=typeson}">
                            <a  class="typename_click"  href="javascript:;">${typeson}</a>
                        </c:if>
                    </c:forEach>
                    </span>
                </dd>
            </dl>

            <dl class="clearfix">
                <dt>按年代：</dt>
                <dd><a class="on" href="javascript:;">全部</a>
                    <span>
                    <c:forEach items="${fn:split(type.typeage,',')}" var="typeage">
                        <c:if  test="${search['typeage']==typeage}">
                            <a  style="color:blue" class="typeage_click"  href="javascript:;">${typeage}</a>
                        </c:if>

                        <c:if  test="${search['typeage']!=typeage}">
                            <a class="typeage_click" href="javascript:;">${typeage}</a>
                        </c:if>
                    </c:forEach>
                  </span>


                </dd>
            </dl>

            <dl class="area clearfix">
                <dt>按地区：</dt>
                <dd><a class="on" href="javascript:;">全部</a>
                    <span>
                    <c:forEach items="${fn:split(type.typearea,',')}" var="typearea">
                          <c:if  test="${search['typearea']==typearea}">
                            <a  style="color:blue" class="typearea_click"  href="javascript:;">${typearea}</a>
                        </c:if>
                          <c:if  test="${search['typearea']!=typearea}">
                            <a   class="typearea_click"  href="javascript:;">${typearea}</a>
                        </c:if>

                    </c:forEach>
                    </dd>
                </span>
            </dl>
        </div>
    </div>
    <div class="list-tab mb clearfix">
        <ul>
            <li><a class="time  on" href="javascript:;"><em></em>最新</a></li>

        </ul>
    </div>
    <div class="index-tj mb clearfix">
        <ul>

            <c:forEach items="${pageInfo.list}" var="video">
            <li class="mb">
                <a class="li-hv" href="${pageContext.request.contextPath}/detail/${video.videoid}" title="${video.videoname}">
                <div class="img"><img class="lazy" data-original="${video.videopaper}"
                                      src="${pageContext.request.contextPath}/static2/picture/load.gif" alt="${video.videoname}"> <b class="bg1"></b> <b
                        class="play-hv"></b> <b class="sjbg2 png"></b>
                    <p class="bz">${video.videoname2}</p>
                </div>
                <div class="text">
                    <p class="name">${video.videoname}</p>
                </div>
            </a></li>
            </c:forEach>

        </ul>
    </div>
    <div class="page mb clearfix">
        <a href="${pageContext.request.contextPath}/list/${typeid}?page=1${url}">首页</a>
        <c:if test="${pageInfo.hasPreviousPage}">
        <a href="${pageContext.request.contextPath}/list/${typeid}?page=${pageInfo.pageNum-1}${url}">上一页</a>
        </c:if>
        <c:forEach items="${pageInfo.navigatepageNums}" var="item">
            <c:if test="${item==pageInfo.pageNum}">
                <em>${item}</em>
            </c:if>
            <c:if test="${item!=pageInfo.pageNum}">
                <a href="${pageContext.request.contextPath}/list/${typeid}?page=${item}${url}">${item}</a>
            </c:if>

        </c:forEach>
        <c:if test="${pageInfo.hasNextPage}">
            <a href="${pageContext.request.contextPath}/list/${typeid}?page=${pageInfo.pageNum+1}${url}">下一页</a>
        </c:if>

        <a href="${pageContext.request.contextPath}/list/${typeid}?page=${pageInfo.pages}${url}">尾页</a>

    </div>
</div>
<script type="text/javascript">
$(function(){
     function go()
     {
        var url= "&";
        var typename=$("#typename").val();
        var typeage= $("#typeage").val();
        var typearea= $("#typearea").val();
        if(typename!="")
        {
            url+="typename="+typename+"&";
        }
         if(typeage!="")
         {
             url+="typeage="+typeage+"&";
         }
         if(typearea!="")
         {
             url+="typearea="+typearea+"&";
         }
        window.location.href="${pageContext.request.contextPath}/list/${typeid}?page=1"+url;
     }


    $(".typename_click").on('click',function(){
        $("#typename").val($(this).text());
        go();

    })
    $(".typeage_click").on('click',function(){
        $("#typeage").val($(this).text());
        go();
    })
    $(".typearea_click").on('click',function(){
        $("#typearea").val($(this).text());
        go();
    })

    //$(this).css("color","blue")
    //$(this).siblings().css("color","black");
})
</script>

<div class="gotop"><a class="gotopbg" href="javascript:;" title="返回顶部"></a></div>

</body>
</html>